import Vue from "vue"
import VueRouter from "vue-router"
import index from "@/views/index.vue"
Vue.use(VueRouter);

const router=new VueRouter({
	routes:[
		{
			path:"/",
			component:index,
			children:[
				{
					path:"indexa",
					component:()=>import("@/views/indexa.vue")
				},
				{
					path:"indexb",
					component:()=>import("@/views/indexb.vue")
				},
			]
		},
		{
			path:"/navb",
			component:()=>import("@/views/navb.vue")
		},
		{
			path:"/fu",
			component:()=>import("@/views/fu.vue")
		},
		{
			path:"/zi",
			name:"/zi",
			component:()=>import("@/components/zi.vue")
		},
		{
			path:"/list",
			component:()=>import("@/views/list.vue")
		},
		{
			path:"/detail",
			name:"/detail",
			component:()=>import("@/views/detail.vue")
		},
		{
			path:"*",
			component:()=>import("@/views/404.vue")
		}
	]
})
export default router
	
